package com.sz.feign;

import com.sz.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(value = "nbbc-onlinebank")
public interface RegTranjFeign {

    @RequestMapping(value = "/obc/onbanktran",method = RequestMethod.POST)
    public Result RegOnBankTran(@RequestParam("payerAccount") String payerAccount, @RequestParam("tradingAmount") Long tradingAmount);

}
